package com.fr.web.face;

import com.fr.base.xml.XMLPrintWriter;
import com.fr.base.xml.XMLableReader;
import com.fr.privilege.authentication.Authentication;
import javax.servlet.http.HttpServletRequest;

public class FolderDef extends AbstractNodeDef
{
  private boolean isShow = true;

  public boolean isShow()
  {
    return this.isShow;
  }

  public void setShow(boolean paramBoolean)
  {
    this.isShow = paramBoolean;
  }

  public Access createURI(HttpServletRequest paramHttpServletRequest, Authentication paramAuthentication)
  {
    return new Access("", true);
  }

  public void readXML(XMLableReader paramXMLableReader)
  {
    super.readXML(paramXMLableReader);
    if ((paramXMLableReader.isChildNode()) && ("FolderAttributes".equals(paramXMLableReader.getTagName())))
    {
      String str;
      if ((str = paramXMLableReader.getAttr("isShow")) != null)
        setShow(Boolean.valueOf(str).booleanValue());
    }
  }

  public void writeXML(XMLPrintWriter paramXMLPrintWriter)
  {
    super.writeXML(paramXMLPrintWriter);
    paramXMLPrintWriter.startTAG("FolderAttributes").attr("isShow", isShow()).end();
  }
}